package net.edu_soft.ec.asset.pojo.bo;

import java.io.Serializable;
import java.util.List;


/**
 *  @author: PUING
 *  @Date: 2020/6/9 12:24
 *  @Description: 用户权限
 */
public class UserPermission implements Serializable {

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 角色名
     */
    private String name;

    /**
     * 权限集合
     */
    private List<PermissionBO> permissions;

    public UserPermission() {
    }

    public UserPermission(Integer roleId, String name, List<PermissionBO> permissions) {
        this.roleId = roleId;
        this.name = name;
        this.permissions = permissions;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<PermissionBO> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<PermissionBO> permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return "UserPermission{" +
                "roleId=" + roleId +
                ", name='" + name + '\'' +
                ", permissions=" + permissions +
                '}';
    }
}
